# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

    dependencies = [
        ('products', '0001_initial'),
        ('account', '0002_auto_20150415_1632'),
    ]

    operations = [
        migrations.CreateModel(
            name='UserAsset',
            fields=[
                ('user', models.OneToOneField(primary_key=True, serialize=False, to='account.User')),
                ('balance', models.FloatField()),
                ('asset', models.FloatField()),
                ('profit', models.FloatField()),
                ('profit_rate', models.FloatField()),
            ],
        ),
        migrations.CreateModel(
            name='UserBankCard',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('card_number', models.IntegerField()),
                ('bank_name', models.CharField(max_length=20)),
                ('bank_city', models.CharField(max_length=20)),
                ('bank_branch', models.CharField(max_length=20)),
            ],
        ),
        migrations.CreateModel(
            name='UserIdentity',
            fields=[
                ('user', models.OneToOneField(primary_key=True, serialize=False, to='account.User')),
                ('name', models.CharField(max_length=50)),
                ('id_number', models.CharField(max_length=50)),
                ('identity_datetime', models.DateTimeField()),
            ],
        ),
        migrations.CreateModel(
            name='UserInvest',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('capital', models.FloatField()),
                ('profit', models.FloatField()),
                ('invest_datetime', models.DateTimeField()),
                ('product', models.ForeignKey(to='products.Product')),
                ('user', models.ForeignKey(to='account.User')),
            ],
        ),
        migrations.AddField(
            model_name='userbankcard',
            name='user',
            field=models.ForeignKey(to='account.User'),
        ),
    ]
